<?php
namespace Admin\Model;

use Think\Model;

class RoleModel extends Model
{
    protected $connection = 'XYC';
    protected $trueTableName = 'merchant_role';
//    protected $patchValidate = true;
    protected $updateFields = array('rolename','top_id','next_id','last_id','status','version');
    protected $_validate = array(
        array('rolename', 'require', '角色名不能为空'),
        array('rolename', '', '角色名已存在','0','unique','1'),
        array('top_id', 'require', '权限不能为空'),
    );

}